package com.example.springsecurity.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.springsecurity.entity.SystemTenant;
import com.example.springsecurity.entity.SystemUser;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Select;

/**
 * 租户信息表(SystemTenant)表数据库访问层
 *
 * @author aman
 * @since 2025-01-15 16:50:09
 */
@Mapper
public interface SystemTenantMapper extends BaseMapper<SystemTenant> {
    @Select("SELECT su.*  FROM system_tenant su where su.name = #{tenantName}")
    SystemTenant selectUserInfoByTenantName(String tenantName);
}
